/*
 * 版权所有 (c) 2022-2099 TBIT。保留所有权利。
 */

package com.tbit.uqbike.object.pojo;

import lombok.Data;

import java.util.Date;

/**
 * @author yao
 */
@Data
public class TerOfflineOrder {

    private String serStr;

    private String machineNo;

    private String controlType;

    private Date modDt;

    private String paramName;

    private String paramValue;

    private Date downDt;

    private Integer terRet;

    private String terData;

    private Date terRspDt;

    private String taskName;

    private String from;

    public static TerOfflineOrder of(String serStr, String controlType, String from, String machineNo, Date date, String paramName, String paramValue, String taskName) {
        TerOfflineOrder terOfflineOrder = new TerOfflineOrder();
        terOfflineOrder.setSerStr(serStr);
        terOfflineOrder.setControlType(controlType);
        terOfflineOrder.setMachineNo(machineNo);
        terOfflineOrder.setModDt(date);
        terOfflineOrder.setFrom(from);
        terOfflineOrder.setParamName(paramName);
        terOfflineOrder.setParamValue(paramValue);
        terOfflineOrder.setTaskName(taskName);
        return terOfflineOrder;
    }

}